/*
 * BomSabor.java
 *
 * Created on 8 de Junho de 2007, 17:24
 */

package gui;


import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author  Novo
 */
public class BomSabor extends javax.swing.JFrame {
    
    /** Creates new form BomSabor */
    public BomSabor() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        menuBarPrincipal = new javax.swing.JMenuBar();
        menuOpcoes = new javax.swing.JMenu();
        botaoLogIn = new javax.swing.JMenuItem();
        botaoLogOut = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        botaoSair = new javax.swing.JMenuItem();
        menuCliente = new javax.swing.JMenu();
        botaoAdicionarCliente = new javax.swing.JMenuItem();
        botaoEditarCliente = new javax.swing.JMenuItem();
        botaoExcluirCliente = new javax.swing.JMenuItem();
        menuCardapio = new javax.swing.JMenu();
        botaoCriarCardapio = new javax.swing.JMenuItem();
        botaoEditarCardapio = new javax.swing.JMenuItem();
        menuFuncionarios = new javax.swing.JMenu();
        botaoAdicionarFuncionario = new javax.swing.JMenuItem();
        botaoExcluirFuncionario = new javax.swing.JMenuItem();
        menuEntregadores = new javax.swing.JMenu();
        botaoAdicionarEntregadores = new javax.swing.JMenuItem();
        botaoEditarEntregador = new javax.swing.JMenuItem();
        botaoExcluirEntregadores = new javax.swing.JMenuItem();
        menuFinanceiro = new javax.swing.JMenu();
        botaoAbrirCaixa = new javax.swing.JMenuItem();
        botaoFecharCaixa = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Bom Sabor");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jToolBar1.setFloatable(false);
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/imagem.JPG")));
        jToolBar1.add(jButton1);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/imagem.JPG")));
        jToolBar1.add(jButton2);

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/imagem.JPG")));
        jToolBar1.add(jButton3);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/imagem.JPG")));
        jToolBar1.add(jButton4);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/imagem.JPG")));
        jToolBar1.add(jButton5);

        menuOpcoes.setText("Op\u00e7\u00f5es");
        botaoLogIn.setText("Log-in");
        botaoLogIn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoLogInActionPerformed(evt);
            }
        });

        menuOpcoes.add(botaoLogIn);

        botaoLogOut.setText("Log-out");
        botaoLogOut.setEnabled(false);
        menuOpcoes.add(botaoLogOut);

        menuOpcoes.add(jSeparator1);

        botaoSair.setText("Sair");
        botaoSair.setActionCommand("Item");
        menuOpcoes.add(botaoSair);

        menuBarPrincipal.add(menuOpcoes);

        menuCliente.setText("Cliente");
        botaoAdicionarCliente.setText("Adicionar Cliente...");
        botaoAdicionarCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoAdicionarClienteActionPerformed(evt);
            }
        });

        menuCliente.add(botaoAdicionarCliente);

        botaoEditarCliente.setText("Editar Cliente...");
        botaoEditarCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoEditarClienteActionPerformed(evt);
            }
        });

        menuCliente.add(botaoEditarCliente);

        botaoExcluirCliente.setText("Excluir Cliente...");
        menuCliente.add(botaoExcluirCliente);

        menuBarPrincipal.add(menuCliente);

        menuCardapio.setText("Card\u00e1pio");
        botaoCriarCardapio.setText("Criar Cardapio...");
        menuCardapio.add(botaoCriarCardapio);

        botaoEditarCardapio.setText("Editar Card\u00e1pio...");
        menuCardapio.add(botaoEditarCardapio);

        menuBarPrincipal.add(menuCardapio);

        menuFuncionarios.setText("Funcion\u00e1rios");
        botaoAdicionarFuncionario.setText("Adicionar Funcionario...");
        botaoAdicionarFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoAdicionarFuncionarioActionPerformed(evt);
            }
        });

        menuFuncionarios.add(botaoAdicionarFuncionario);

        botaoExcluirFuncionario.setText("Excluir Funcionario...");
        menuFuncionarios.add(botaoExcluirFuncionario);

        menuEntregadores.setText("Entregadores");
        botaoAdicionarEntregadores.setText("Adicionar Entregador");
        menuEntregadores.add(botaoAdicionarEntregadores);

        botaoEditarEntregador.setText("Editar Entregador...");
        menuEntregadores.add(botaoEditarEntregador);

        botaoExcluirEntregadores.setText("Excluir Entregador...");
        menuEntregadores.add(botaoExcluirEntregadores);

        menuFuncionarios.add(menuEntregadores);

        menuBarPrincipal.add(menuFuncionarios);

        menuFinanceiro.setText("Financeiro");
        botaoAbrirCaixa.setText("Abrir Caixa...");
        menuFinanceiro.add(botaoAbrirCaixa);

        botaoFecharCaixa.setText("Fechar Caixa...");
        menuFinanceiro.add(botaoFecharCaixa);

        menuBarPrincipal.add(menuFinanceiro);

        setJMenuBar(menuBarPrincipal);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jToolBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(320, Short.MAX_VALUE))
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botaoEditarClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoEditarClienteActionPerformed
// TODO add your handling code here:
      EditarClientes frameEditarCliente = new EditarClientes();
      frameEditarCliente.setVisible(true);
    }//GEN-LAST:event_botaoEditarClienteActionPerformed

    private void botaoAdicionarClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAdicionarClienteActionPerformed
// TODO add your handling code here:
        
        CadastroClientes frameCadastroClientes = new CadastroClientes();
        frameCadastroClientes.setVisible(true);
    }//GEN-LAST:event_botaoAdicionarClienteActionPerformed

    private void botaoAdicionarFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAdicionarFuncionarioActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_botaoAdicionarFuncionarioActionPerformed

    private void botaoLogInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoLogInActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_botaoLogInActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
       
        /*
         * Codigo para deixar o look and feel iqual ao XP
         *
          */
        try {
            // Set cross-platform Java L&F (also called "Metal")
          UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException e) {
            // handle exception
        } catch (ClassNotFoundException e) {
            // handle exception
        } catch (InstantiationException e) {
            // handle exception
        } catch (IllegalAccessException e) {
            // handle exception
        }
        
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new BomSabor().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem botaoAbrirCaixa;
    private javax.swing.JMenuItem botaoAdicionarCliente;
    private javax.swing.JMenuItem botaoAdicionarEntregadores;
    private javax.swing.JMenuItem botaoAdicionarFuncionario;
    private javax.swing.JMenuItem botaoCriarCardapio;
    private javax.swing.JMenuItem botaoEditarCardapio;
    private javax.swing.JMenuItem botaoEditarCliente;
    private javax.swing.JMenuItem botaoEditarEntregador;
    private javax.swing.JMenuItem botaoExcluirCliente;
    private javax.swing.JMenuItem botaoExcluirEntregadores;
    private javax.swing.JMenuItem botaoExcluirFuncionario;
    private javax.swing.JMenuItem botaoFecharCaixa;
    private javax.swing.JMenuItem botaoLogIn;
    private javax.swing.JMenuItem botaoLogOut;
    private javax.swing.JMenuItem botaoSair;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JMenuBar menuBarPrincipal;
    private javax.swing.JMenu menuCardapio;
    private javax.swing.JMenu menuCliente;
    private javax.swing.JMenu menuEntregadores;
    private javax.swing.JMenu menuFinanceiro;
    private javax.swing.JMenu menuFuncionarios;
    private javax.swing.JMenu menuOpcoes;
    // End of variables declaration//GEN-END:variables
    
}
